package com.guli.generator.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.guli.generator.pojo.EduTeacher;
import com.guli.generator.pojo.vo.TeacherQuery;


import java.util.List;

/**
* @author Administrator
* @description 针对表【edu_teacher(讲师)】的数据库操作Service
* @createDate 2021-12-28 20:25:55
*/
public interface EduTeacherService{
    /**
     * 带条件分页查询老师信息
     * @param startPage 开始页
     * @param endPage   显示数量
     * @param teacherQuery  条件
     * @return
     */
    Page<EduTeacher> teacherList(Integer startPage, Integer endPage, TeacherQuery teacherQuery);

    /**
     * 逻辑删除老师
     * @param id 老师的id
     * @return >0成功 <1失败
     */
    Integer deleTeacher(String id);

    /**
     * 添加一名老师
     * @param teacher
     * @return
     */
    Integer addTeacher(EduTeacher teacher);

    /**
     * 根据id查询老师
     * @param id
     * @return EduTeacher
     */
    EduTeacher getTeacher(String id);

    /**
     * 修改老师信息
     * @param eduTeacher
     * @return
     */
    Integer updateTeacher(EduTeacher eduTeacher);
}
